package com.akkademy

import akka.actor.{Actor, Status}

/**
  * Created by yc on 2017/6/15.
  */
class ScalaPongActor extends Actor{
  override def receive: Receive = {
    case "Ping" => sender() ! "Pong"
    case _ => sender() ! Status.Failure(new Exception("unknown message"))
  }
}
